package com.exsun.gateway.jt809.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class NettyClientConfig {
	/**
	 * 上级平台IP
	 */
	@Value("${platformInfo.superiorIp}")
	private String superiorIp;
	/**
	 * 上级平台端口
	 */
	@Value("${platformInfo.superiorPort}")
	private int superiorPort;
	/**
	 * 上级平台分配唯一接入码
	 */
	@Value("${platformInfo.superiorCenterId}")
	private int superiorCenterId;

	/**
	 * 上级平台平台分配用户名
	 */
	@Value("${platformInfo.userid}")
	private int userid;

	/**
	 * 上级平台分配密码
	 */
	@Value("${platformInfo.password}")
	private String password;

	/**
	 * 本平台接入IP
	 */
	@Value("${platformInfo.downLinkIp}")
	private String downLinkIp;

	/**
	 * 本平台接入端口
	 */
	@Value("${platformInfo.downLinkPort}")
	private int downLinkPort;

	/**
	 * 	加密参数M1
	 */
	@Value("${platformInfo.M1}")
	private int M1;

	/**
	 * 	加密参数IA1
	 */
	@Value("${platformInfo.IA1}")
	private int IA1;

	/**
	 * 	加密参数M1
	 */
	@Value("${platformInfo.IC1}")
	private int IC1;
	/**
	 * 平台唯一编号
	 */
	@Value("${platformInfo.platformId}")
	private String platformId;

	public String getSuperiorIp() {
		return superiorIp;
	}

	public int getSuperiorPort() {
		return superiorPort;
	}

	public int getSuperiorCenterId() {
		return superiorCenterId;
	}

	public int getUserid() {
		return userid;
	}

	public String getPassword() {
		return password;
	}

	public String getDownLinkIp() {
		return downLinkIp;
	}

	public int getDownLinkPort() {
		return downLinkPort;
	}

	public int getM1() {
		return M1;
	}

	public int getIA1() {
		return IA1;
	}

	public int getIC1() {
		return IC1;
	}

	public String getPlatformId() {
		return platformId;
	}
}
